package com.boot.mapper;

import com.boot.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

//@Mapper:让SpringBoot自动扫描识别到它
@Mapper
public interface UserMapper {

    List<User> select01(@Param("userName") String userName);

    List<User> select02(@Param("userName") String userName,@Param("index")Integer index);

    void update01(@Param("userName") String userName,@Param("password")String password);

    void update02(@Param("userName") String userName,@Param("password")String password);

    void update03(User user);

}
